package com.cmos.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class User implements Serializable {
    @Id
    private String id;//编号
    private String username;//用户名
    private String password;//密码
    private String name;//姓名
    private String sex;//性别
    private Integer age;//年龄
    @Transient
    private List<Role> roles;//用户角色
}
